package com.snow.vpnclient.api;

import java.security.cert.CertificateException;

import javax.net.ssl.X509TrustManager;

/**
 * @author liufq
 * @since 2022-10-25 18:05:29
 */
public class TrustManager {

    public static X509TrustManager trustAllCert = new X509TrustManager() {
        @Override
        public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
        }

        @Override
        public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
        }

        @Override
        public java.security.cert.X509Certificate[] getAcceptedIssuers() {
            return new java.security.cert.X509Certificate[]{};
        }
    };
}
